-- GENERATED SPELL FOR [Runeforged Sentry] --


function spell0_34234(pUnit, Event) --@Flaming Rune,n/a--
pUnit:FullCastSpellOnTarget(64852,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34234', 0, 1)
end

function spell1_34234(pUnit, Event) --@Lava Burst,n/a--
pUnit:FullCastSpellOnTarget(64870,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34234', 0, 1)
end

function spell2_34234(pUnit, Event) --@Runed Flame Jets,n/a--
pUnit:FullCastSpellOnTarget(64847,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34234', 5000, 1)
end

function Sorts_34234(pUnit, Event)
local choix_sorts_34234 = math.random(0, 2)
if choix_sorts_34234 == 0 then
pUnit:RegisterEvent('spell0_34234', 1, 1)
end
if choix_sorts_34234 == 1 then
pUnit:RegisterEvent('spell1_34234', 1, 1)
end
if choix_sorts_34234 == 2 then
pUnit:RegisterEvent('spell2_34234', 1, 1)
end
end

function mob34234_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34234', math.random(1500, 3000), 1)
end

function mob34234_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34234_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34234_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34234, 1, 'mob34234_Action')
RegisterUnitEvent(34234, 2, 'mob34234_Leave')
RegisterUnitEvent(34234, 3, 'mob34234_Kill')
RegisterUnitEvent(34234, 4, 'mob34234_Die')
